package com.qtcm.nas.cxm.yushouka.service.impl;

import com.qtcm.nas.cxm.yushouka.dao.IYuShouKaDao;
import com.qtcm.nas.cxm.yushouka.pojo.*;
import com.qtcm.nas.cxm.yushouka.service.IYuShouService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class YuShouService implements IYuShouService {
    @Autowired
    private IYuShouKaDao yuShouKaDao;

    @Override
    public List<CardOne> findOne() {
        return yuShouKaDao.findOne();
    }

    @Override
    public List<CardTwo> findCardOneOrCardTwo(String cardName) {
        return yuShouKaDao.findCardOneOrCardTwo(cardName);
    }

    @Override
    public List<CardTwo> findNian(String str) {
        return yuShouKaDao.findNian(str);
    }

    @Override
    public List<Employee_ys> findAllYg() {
        return yuShouKaDao.findAllYg();
    }

    @Override
    public List<MemberShip_Form_ys> findHy() {
        return yuShouKaDao.findHy();
    }

    @Override
    public void addChard(Pre_Sale_Card_Table preSaleCardTable) {
        yuShouKaDao.addChard(preSaleCardTable);
    }

}
